package com.atguigu.gmall.common.config.executor.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.concurrent.TimeUnit;

/**
 * @author lfy
 * @Description
 * @create 2023-08-23 15:24
 */
@ConfigurationProperties(prefix = "app.thread-pool")
@Data
public class ThreadPoolProperties {

    private Integer core = 4;
    private Integer max = 8;
    private Long keepAliveTime = 5L;
    private TimeUnit unit = TimeUnit.MINUTES;
    private Integer workQueueSize = 1000;



}
